package com.qk.management.mapper;

import com.qk.dto.activity.ActivityDTO;
import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 * @author sch
 * @version 1.0
 * @since 2025-10-09-14:48
 */
@Mapper
public interface ActivityMapper {

    List<Activity> selectByCondition(ActivityDTO activityDTO);

    void deleteById(Integer id);

    void insert(Activity activity);

    Activity selectById(Integer id);

    // 新增：更新活动
    void update(Activity activity);

    List<Activity> listActivitiesByType(Integer type);
}
